package cn.bdqn.fifth;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Description TODO
 * @Date 2020/2/12 11:39
 * @Created by 张三三
 */
public class Demo {
    public static void main(String[] args) {

        ClassPathXmlApplicationContext app = new ClassPathXmlApplicationContext("applicationContext-2.xml");

        Person person = app.getBean(Person.class);
        person.driver();

       /* Car car = app.getBean(Car.class);

        System.out.println("car = " + car);
*/
    }
}
